import Vue from 'vue'
import App from './App.vue'
import router from './router'
// import store from './store'
import dataV from '@jiaminghi/data-view'
import axios from 'axios'
import countTo from "vue-count-to"

Vue.use(dataV)
// Vue.prototype.http = axios
// 引入vue-awesome
import Icon from 'vue-awesome/components/Icon'
import 'vue-awesome/icons/index.js'
// 全局注册图标
Vue.component('icon', Icon)
Vue.component('countTo', countTo)
let echarts = require('echarts/lib/echarts');
require('echarts/lib/chart/line');
require('echarts/lib/chart/pie');
require('echarts/lib/chart/bar');
// 引入提示框和title组件
require('echarts/lib/component/legend');
require('echarts/lib/component/tooltip');
require('echarts/lib/component/title');
Vue.prototype.$echarts = echarts;
// 引入全局css
import './assets/scss/style.scss'

Vue.prototype.http = axios.create({

  baseURL: "http://10.10.208.6:2020/home/serv",
  // withCredentials: true, // send cookies when cross-domain requests
  // timeout: 20000, // request timeout
  // headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
})

Vue.config.productionTip = false

new Vue({
  router,
  // store,
  render: h => h(App)
}).$mount('#app')